#!/bin/sh
AUSWAHL=1
if [ -s /var/tuxbox/config/remote_box.conf -a $AUSWAHL = 1 ]; then
	BOXEN=" AUSWAHL"
	BOX2_NAME="Remote-Box Auswahl"
elif [ -s /var/tuxbox/config/remote_timer.conf ]; then
	. /var/tuxbox/config/remote_timer.conf
	BOX2_NAME="Remote-Box  $IP_BOX2"
else
	msgbox size=34 timeout=300 title="Remote-Box - Bedienfunktionen..." popup="~cFehler:  Es wurde keine Remote-Box gefunden !!!"
	exit 1
fi
msgbox size=36 absolute=1 order=1 select="Remote-Box Aufnahme starten..., Aktive Timer-Aufnahme stoppen... " title="Remote-Box - Bedienfunktionen..." msg="~c$BOX2_NAME"
case "$?" in
	1)
		/var/plugins/remote_timer.sh REMOTE TIMER_START$BOXEN
	;;
	2)
		/var/plugins/remote_timer.sh REMOTE TIMER_STOP$BOXEN
	;;
esac
exit 0
